//
//  SYFileHandle.h
//  BSHOUYIFANG
//
//  Created by lanou3g on 15/8/19.
//  Copyright (c) 2015年 CYB. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class SYUser;

@interface SYFileHandle : NSObject

+ (SYFileHandle *)shareInstance;

#pragma mark ----用户信息-----

- (void)synchronize;
- (void)setUserForAll:(SYUser *)user;
//设置用户信息
- (void)setloginState:(BOOL)isLogin;
- (void)setPhoneNumber:(NSString *)phoneNumber;
- (void)setUsername:(NSString *)username;
- (void)setPassword:(NSString *)password;
- (void)setIcon:(NSData *)icon;
- (void)clearAll;
//获取用户信息
- (BOOL)loginState;
- (NSString *)username;
- (NSString *)password;
- (NSString *)phoneNumber;
- (NSData *)icon;
- (SYUser *)user;

@end
